﻿using System;

namespace EcoSystem.Office.Excel
{
    /// <summary>
    /// 导出列配置
    /// </summary>
    [Serializable]
    public class ExportColumn
    {
        /// <summary>
        /// 标题
        /// </summary>
        public string Caption { get; set; }

        /// <summary>
        /// 字段名
        /// </summary>
        public string FieldName { get; set; }

        /// <summary>
        /// 宽度
        /// </summary>
        public int Width { get; set; }

        /// <summary>
        /// 列类型
        /// </summary>
        public Type DataType { get; set; }

        /// <summary>
        /// 数据验证信息
        /// </summary>
        public CellValidate Validate { get; set; }
    }
}
